package com.fick.tools;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SearchInfo extends HttpServlet {

	@Override
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
		response.setContentType("text/html");
		String s_newsid = new String(request.getParameter("newsid").getBytes("ISO-8859-1"), "UTF-8");
		String s_typeid = new String(request.getParameter("typeid").getBytes("ISO-8859-1"), "UTF-8");
		String s_bigid = new String(request.getParameter("bigid").getBytes("ISO-8859-1"), "UTF-8");
		String s_smallid = new String(request.getParameter("smallid").getBytes("ISO-8859-1"), "UTF-8");
		int newsid = Integer.parseInt(s_newsid);
		int typeid = Integer.parseInt(s_typeid);
		int bigid = Integer.parseInt(s_bigid);
		int smallid = Integer.parseInt(s_smallid);
		if (typeid == 8) {
			response.sendRedirect("gjbz_info.jsp?typeid=" + typeid + "&newsid=" + newsid + "&bigid=" + bigid + "&smallid="
					+ smallid);
		} else if (typeid == 9) {
			response.sendRedirect("hydt_info.jsp?typeid=" + typeid + "&newsid=" + newsid + "&bigid=" + bigid + "&smallid="
					+ smallid);
		} else if (typeid == 10) {
			response.sendRedirect("bzhzs_info.jsp?typeid=" + typeid + "&newsid=" + newsid + "&bigid=" + bigid + "&smallid="
					+ smallid);
		} else if (typeid == 11) {
			response.sendRedirect("mxqy_info.jsp?typeid=" + typeid + "&newsid=" + newsid + "&bigid=" + bigid + "&smallid="
					+ smallid);
		} else {
			// System.out.println("����"); // ���ƴ���ҳ��
		}

	}
}
